import request from '@/utils/request'

// 登录
export const login = data => {
  return request({
    method: "POST",
    url: "/mp/v1_0/authorizations",
    data
  })
}

// 获取用户基本信息
export const getUserInfo = () => {
  return request({
    method: "GET",
    url: "/mp/v1_0/user/profile"
  })
}

// 编辑用户资料
export const editUserInfo = data => {
  return request({
    method: "PATCH",
    url: "/mp/v1_0/user/profile",
    data
  })
}
